package com.kongyz.shape;

/**
 * @author kongyz
 * @date 2018/6/30 11:47
 * @Description:
 */
public class Circle implements Shape {
    private String color;
    private int x;
    private int y;
    private int radius;

    public Circle(String color) {
        this.color = color;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

    public void draw() {
        System.out.println("画一个" + color + "的圆形，坐标：[" + x + "," + y + "]，半径：" + radius);
    }
}
